<%@ taglib uri="http://www.opensymphony.com/oscache" prefix="cache" %>
<html>
    <head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>JSP Page</title>
    </head>
    <body>
	<ul>
	    <li> Cache time with with default uri 10 seconds:" 
		<cache:cache time="10">
		    <%out.print(System.currentTimeMillis());%>
		</cache:cache>
	    </li>
	    <li> Cache date in session: 
		<cache:cache key="session_key" scope="session">
		    <%out.print(System.currentTimeMillis());%>
		</cache:cache>
		<cache:cache key="session_key" scope="session">
		    <%out.print(System.currentTimeMillis());%>
		</cache:cache>
	    </li>
	    <li> Cache the content with a programmatic key, expiring it every minute:
		<cache:cache key="cron_cache" cron="*/60 * * * *">
		    <%out.print(System.currentTimeMillis());%>
		</cache:cache>
	    </li>
	    <li> Refresh ???
		<cache:cache key="refresh_cache" scope="session" time="60" refresh="true">
		    <%out.print(System.currentTimeMillis());%>
		</cache:cache>
	    </li>
	</ul>
    </body>
</html>
